---
title: Invalid value returned by a getStaticPaths path.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **InvalidGetStaticPathParam**: Invalid params given to `getStaticPaths` path. Expected an `object`, got `PARAM_TYPE`

## 무엇이 잘못되었나요?

`getStaticPaths`의 반환 값 (객체 배열)에 있는 `params` 속성도 객체여야 합니다.

```astro title="pages/blog/[id].astro"
---
export async function getStaticPaths() {
	return [
		{ params: { slug: "blog" } },
		{ params: { slug: "about" } }
	];
}
---
```

**더 보기:**

-  [`getStaticPaths()`](/ko/reference/api-reference/#getstaticpaths)
-  [`params`](/ko/reference/api-reference/#params)


